package com.lfd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lfd.mapper.IProductHotMapper;
import com.lfd.service.ProductHotService;
import com.lfd.vo.ProductVo;

@Service
public class IProductHotServiceImpl implements ProductHotService {
	@Autowired
	private IProductHotMapper iProductHotMapper;

	@Override
	public List<ProductVo> ReProduct(ProductVo productVo, Integer page, Integer limit) {
		List<ProductVo> reProduct = iProductHotMapper.ReProduct(productVo, (page - 1) * limit, limit);
		return reProduct;
	}

	@Override
	public void update(List<Long> ids) {
		// TODO Auto-generated method stub
		iProductHotMapper.update(ids);
	}

	@Override
	public void szremen(List<Long> ids, Boolean isremen) {
		// TODO Auto-generated method stub
		iProductHotMapper.szremen(ids, isremen);
	}

}
